package com.asistencia.controller;

import java.util.List;

import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.asistencia.businness.SemesterBusiness;
import com.asistencia.businness.StudentBusiness;
import com.asistencia.domain.Semester;

public class SemesterController {

	private SemesterBusiness semesterBusiness;
	private Semester semester;
	private StudentBusiness studentBusiness;

	@RequestMapping(value = "/student.tecsup", method = RequestMethod.GET)
	public String VerSemester(ModelMap modelMap) {
		List<Semester> lstSemester = semesterBusiness.listAll();
		modelMap.addAttribute("lstSemester", lstSemester);
		return "student";
	}

	@RequestMapping(value = "/student.tecsup", method = RequestMethod.GET)
	public String ver() {
		return "student";
	}

}
